import request from '@/utils/request'

// 查询抽盒记录列表
export function listCwrecord(query) {
  return request({
    url: '/system/cwrecord/list',
    method: 'get',
    params: query
  })
}

// 查询抽盒记录详细
export function getCwrecord(recordId) {
  return request({
    url: '/system/cwrecord/' + recordId,
    method: 'get'
  })
}

// 新增抽盒记录
export function addCwrecord(data) {
  return request({
    url: '/system/cwrecord',
    method: 'post',
    data: data
  })
}

// 修改抽盒记录
export function updateCwrecord(data) {
  return request({
    url: '/system/cwrecord',
    method: 'put',
    data: data
  })
}

// 删除抽盒记录
export function delCwrecord(recordId) {
  return request({
    url: '/system/cwrecord/' + recordId,
    method: 'delete'
  })
}
